package com.kyub.buganville

class Issue {

    def String title
    def String content
    def Date dateCreated
    def Date lastUpdated
    def Priority priority
    def IssueStatus status
    def IssueType type
  

    static belongsTo = [opener:User, asegnee: User, artifact: Artifact]

    static constraints = {
      title(size:5..155,blank:false)
      content(size:5..2048,blank:false)
      priority(blank:false)
      status(blank:false)
      type(blank:false)
      opener(nullable:false)
      artifact(nullable:false)
      asegnee(nullable:true)
    }
}
